import { api } from './index';
import type { DashboardStats } from './types';

/**
 * Dashboard API
 */
export const dashboardApi = {
  /**
   * 获取仪表盘统计数据
   */
  async getStats(): Promise<DashboardStats> {
    return await api.get<DashboardStats>('/dashboard/stats');
  },
};
